package poler.model
{
	import com.adobe.cairngorm.model.IModelLocator;
	import com.salesforce.results.LoginResult;
	
	import mx.controls.VideoDisplay;
	import mx.managers.BrowserManager;
	import mx.managers.IBrowserManager;
	import mx.managers.SystemManager;
	
	import poler.model.domain.domainView1;

	[Bindable]
	public class ModelLocator implements IModelLocator
	{
				
		private static var instance:ModelLocator ;

		// Our Domain Model
		public var dmView1:domainView1;
		//
		public var swfLoaderC:SystemManager;
		
		// Our SalesForce Connecton
		public var Apex:SforceConnection;
		// Browser Manager
		public var browserManager:IBrowserManager;
		// Video target
		public var videoDS:VideoDisplay;
		public var ContactId:String;
		// Our Login credentials
		public var loginDetails:LoginResult;
		public var isLoggedIn:Boolean;
		public var ViewIndex:int;
		
		public static function getInstance():ModelLocator
		{
			if( instance==null) {
				instance = new ModelLocator();
				instance.browserManager = BrowserManager.getInstance();
				instance.dmView1 = new domainView1();
			}
			return instance ;
		}
		
		
	}
}